﻿@model  Forest.Lion.Web.Models.Company.CompanyFormModel
@Html.AntiForgeryToken()
<table>
    <tr>
        <td class="editor-label">@Html.LabelFor(model => model.CompanyName)
        </td>
        <td class="editor-field">@Html.TextBoxFor(model => model.CompanyName)@Html.ValidationMessageFor(model => model.CompanyName)
        </td>
    </tr>
    <tr>
        <td class="editor-label">@Html.LabelFor(model => model.ShortName)
        </td>
        <td class="editor-field">@Html.TextBoxFor(model => model.ShortName)@Html.ValidationMessageFor(model => model.ShortName)
        </td>
    </tr>
    <tr>
        <td class="editor-label">@Html.LabelFor(model => model.Shortcut)
        </td>
        <td class="editor-field">@Html.TextBoxFor(model => model.Shortcut)
        </td>
    </tr>
    <tr>
        <td class="editor-label">@Html.LabelFor(model => model.Industry)
        </td>
        <td class="editor-field">@Html.DropDownListFor(model => model.Industry, Model.AvailableIndustres, "请选择")@Html.ValidationMessageFor(model => model.Industry)
        </td>
    </tr>
    <tr>
        <td class="editor-label">@Html.LabelFor(model => model.CompanyType)
        </td>
        <td class="editor-field">@Html.DropDownListFor(model => model.CompanyType, Model.AvailableCompanyTypes, "请选择")@Html.ValidationMessageFor(model => model.CompanyType)
        </td>
    </tr>
    <tr>
        <td class="editor-label">@Html.LabelFor(model => model.Employees)
        </td>
        <td class="editor-field">@Html.TextBoxFor(model => model.Employees)@Html.ValidationMessageFor(model => model.Employees)
        </td>
    </tr>
    <tr>
        <td class="editor-label">@Html.LabelFor(model => model.BusinessLicense)
        </td>
        <td class="editor-field">@Html.TextBoxFor(model => model.BusinessLicense)@Html.ValidationMessageFor(model => model.BusinessLicense)
        </td>
    </tr>
    <tr>
        <td class="editor-label">@Html.LabelFor(model => model.RegisteredCapital)
        </td>
        <td class="editor-field">@Html.TextBoxFor(model => model.RegisteredCapital, new { maxlength = 7 })<span>万元</span>
            @Html.ValidationMessageFor(model => model.RegisteredCapital)
        </td>
    </tr>
    <tr>
        <td class="editor-label">@Html.LabelFor(model => model.EstablishedOn)
        </td>
        <td class="editor-field">@Html.TextBox("成立日期", Model.EstablishedOn == null ? string.Empty : Convert.ToDateTime(Model.EstablishedOn).ToShortDateString(), new { id = "EstablishedOn", maxlength = "10" })
            @Html.ValidationMessageFor(model => model.EstablishedOn)
        </td>
    </tr>
    <tr>
        <td class="editor-label">@Html.LabelFor(model => model.Overview)
        </td>
        <td class="editor-field">@Html.TextBoxFor(model => model.Overview)@Html.ValidationMessageFor(model => model.Overview)
        </td>
    </tr>
    <tr>
        <td class="editor-label">@Html.LabelFor(model => model.Business)
        </td>
        <td class="editor-field">@Html.TextBoxFor(model => model.Business)@Html.ValidationMessageFor(model => model.Business)
        </td>
    </tr>
    @* <tr>
        <td class="editor-label">@Html.LabelFor(model => model.Province)
        </td>
        <td class="editor-field">@Html.DropDownListFor(model => model.Province, null, "请选择")@Html.ValidationMessageFor(model => model.Province)
        </td>
    </tr>
    <tr>
        <td class="editor-label">@Html.LabelFor(model => model.City)
        </td>
        <td class="editor-field">@Html.DropDownListFor(model => model.City, null, "请选择")@Html.ValidationMessageFor(model => model.City)
        </td>
    </tr>*@
    <tr>
        <td class="editor-label">@Html.LabelFor(model => model.Address)
        </td>
        <td class="editor-field">@Html.TextBoxFor(model => model.Address)@Html.ValidationMessageFor(model => model.Address)
        </td>
    </tr>
    <tr>
        <td class="editor-label">@Html.LabelFor(model => model.PostalCode)
        </td>
        <td class="editor-field">@Html.TextBoxFor(model => model.PostalCode)@Html.ValidationMessageFor(model => model.PostalCode)
        </td>
    </tr>
    <tr>
        <td class="editor-label">@Html.LabelFor(model => model.Contact)
        </td>
        <td class="editor-field">@Html.TextBoxFor(model => model.Contact)@Html.ValidationMessageFor(model => model.Contact)
        </td>
    </tr>
    <tr>
        <td class="editor-label">@Html.LabelFor(model => model.Tel)
        </td>
        <td class="editor-field">@Html.TextBoxFor(model => model.Tel)@Html.ValidationMessageFor(model => model.Tel)
        </td>
    </tr>
    <tr>
        <td class="editor-label">@Html.LabelFor(model => model.Fax)
        </td>
        <td class="editor-field">@Html.TextBoxFor(model => model.Fax)@Html.ValidationMessageFor(model => model.Fax)
        </td>
    </tr>
    <tr>
        <td class="editor-label">@Html.LabelFor(model => model.Mobile)
        </td>
        <td class="editor-field">@Html.TextBoxFor(model => model.Mobile)@Html.ValidationMessageFor(model => model.Mobile)
        </td>
    </tr>
    <tr>
        <td class="editor-label">@Html.LabelFor(model => model.Email)
        </td>
        <td class="editor-field">@Html.TextBoxFor(model => model.Email)@Html.ValidationMessageFor(model => model.Email)
        </td>
    </tr>
    <tr>
        <td class="editor-label">@Html.LabelFor(model => model.WebSite)
        </td>
        <td class="editor-field">@Html.TextBoxFor(model => model.WebSite)@Html.ValidationMessageFor(model => model.WebSite)
        </td>
    </tr>
    @* <tr>
        <td class="editor-label">@Html.LabelFor(model => model.Park)
        </td>
        <td class="editor-field">@Html.DropDownListFor(model => model.Park, null, "请选择")
        </td>
    </tr>*@
    <tr>
        <td class="editor-label">@Html.LabelFor(model => model.EnableShortName)
        </td>
        <td class="editor-field">@Html.TextBoxFor(model => model.EnableShortName)
        </td>
    </tr>
    <tr>
        <td class="editor-label">@Html.LabelFor(model => model.TemplateId)
        </td>
        <td class="editor-field">@Html.TextBoxFor(model => model.TemplateId)
        </td>
    </tr>
</table>
@Html.ValidationSummary(true)
<script type="text/javascript">

    $(document).ready(function () {
        $("#EstablishedOn").datepicker({ dateFormat: 'yy/mm/dd',
            showButtonPanel: true,
            showOn: 'button',
            buttonImage: "/Content/images/calendar.gif",
            buttonImageOnly: true
        });
    });

</script>
